﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Digitalmes.Model.ProcessManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.ProcessManagement.ProcessRouteVMs
{
    public partial class ProcessRouteTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._ProcessRoute._ProductId")]
        public ExcelPropety ProductId_Excel = ExcelPropety.CreateProperty<ProcessRoute>(x => x.ProductId);
        [Display(Name = "_Model._ProcessRoute._RoutingCode")]
        public ExcelPropety RoutingCode_Excel = ExcelPropety.CreateProperty<ProcessRoute>(x => x.RoutingCode);
        [Display(Name = "_Model._ProcessRoute._RoutingName")]
        public ExcelPropety RoutingName_Excel = ExcelPropety.CreateProperty<ProcessRoute>(x => x.RoutingName);
        [Display(Name = "_Model._ProcessRoute._Active")]
        public ExcelPropety Active_Excel = ExcelPropety.CreateProperty<ProcessRoute>(x => x.Active);
        [Display(Name = "_Model._ProcessRoute._Aux_1")]
        public ExcelPropety Aux_1_Excel = ExcelPropety.CreateProperty<ProcessRoute>(x => x.Aux_1);
        [Display(Name = "_Model._ProcessRoute._Aux_2")]
        public ExcelPropety Aux_2_Excel = ExcelPropety.CreateProperty<ProcessRoute>(x => x.Aux_2);
        [Display(Name = "_Model._ProcessRoute._ProductCode")]
        public ExcelPropety ProductCode_Excel = ExcelPropety.CreateProperty<ProcessRoute>(x => x.ProductCode);
        [Display(Name = "_Model._ProcessRoute._ProductName")]
        public ExcelPropety ProductName_Excel = ExcelPropety.CreateProperty<ProcessRoute>(x => x.ProductName);
        [Display(Name = "_Model._ProcessRoute._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<ProcessRoute>(x => x.CreateTime, true);
        [Display(Name = "_Model._ProcessRoute._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<ProcessRoute>(x => x.UpdateTime, true);
        [Display(Name = "_Model._ProcessRoute._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<ProcessRoute>(x => x.CreateBy);
        [Display(Name = "_Model._ProcessRoute._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<ProcessRoute>(x => x.UpdateBy);
        [Display(Name = "_Model._ProcessRoute._IsValid")]
        public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<ProcessRoute>(x => x.IsValid);
        [Display(Name = "_Model._ProcessRoute._TenantCode")]
        public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<ProcessRoute>(x => x.TenantCode);

	    protected override void InitVM()
        {
            
        }

    }

    public class ProcessRouteImportVM : BaseImportVM<ProcessRouteTemplateVM, ProcessRoute>
    {
            //import

    }

}